package com.samoiloff.framework.view {
	import com.samoiloff.framework.AbstractComponent;
	import com.samoiloff.framework.model.AbstractModel;

	/**
 * @author Samoiloff
 */
public class AbstractView {

	protected var _component: AbstractComponent;
	private var _model:AbstractModel;

	public function AbstractView(component:AbstractComponent, model:AbstractModel) {
		super();
		_component = component;
		_model = model;
	}

	public function get component(): AbstractComponent {
		return _component;
	}

	public function destroy():void {
		_component = null;
		_model = null;
	}

	public function get model():AbstractModel {
		return _model;
	}
}
}
